#!\usr\bin\env python
"""
Use this file to define any messages and signal values required to initialize
the CAN bus. The messages below show an example take from GM_B4. They were
almost all directly copied from a canoe simulation. It also shows how messages
not found in the database can be sent.
"""
def initbus(can):
    """Initializes the CAN bus"""
    can.send_message(0x13FFE040, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE058, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE059, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE062, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE067, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE06C, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE06F, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE073, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE075, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE080, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE081, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE087, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE08E, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE097, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE098, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE099, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE0A4, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE0A8, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE0AB, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE0AD, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE0AF, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE0B2, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE0B9, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE0BB, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE0BC, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE0C2, '', inDatabase=False, cycleTime=1000)
    can.send_message(0x13FFE0CB, '', inDatabase=False, cycleTime=1000)
    can.send_message('USDT_Req_to_All_LS_ECUs', 'FE013E0000000000')
    can.send_message('VNMF_LS_621_BCM', '0140000000000000')
    can.send_message('Compass_Status_LS', '00000000')
    can.send_message('Park_Heater_Info_LS', '00000000')
    can.send_message('Air_Conditioning_Comp_Type_LS', '00')
    can.send_message('Column_Lock_Status_2', '0000')
    can.send_message('Language_Selection_LS', '00')
    can.send_message('HMI_AnimationHybridRadio_LS', '000000')
    can.send_message('High_Volt_Batt_Time_Pwr_Chrg_LS', '0000000000000000')
    can.send_message('HMI_Hybrid_Vehicle_Status_LS', '0000000000000000')
    can.send_message('Lane_Departure_Warning_LS', '000000')
    can.send_message('Passive_Entry_Challenge_LS', '0000000000')
    can.send_message('HUD_Status_LS', '00')
    can.send_message('Airbag_Indications', '737300000000')
    can.send_message('Dimming_Information_LS', '0000FF')
    can.send_message('Lighting_Status_LS', '0000000000')
    can.send_message('Rear_Closure_Ajar_Switch_Status', '00')
    can.send_message('Driver_Door_Status', '00')
    can.send_message('Power_Mode_Info_LS', '000000')
    can.send_message('Column_Lock_Status', '00')
    can.send_message('Man_Prk_Brk_LS', '00')
    can.send_message('Tire_Pressure_Sensors_LS', '0000FFFFFFFF')
    can.send_message('BulbOutage_LS', '0000')
    can.send_message('Compass_Status_LS', '00000000')
    can.send_message('ODIIndication_LS', '0000000000000000')
    can.send_message('ODIEnumDynamicData_LS', '0000000000000000')
    can.send_message('Vehicle_Theft_Notification_Stat', '0000000000')
    can.send_message('Infrastructure_Timer_Status_LS', '0000000000')
    can.send_message('Audio_Source_Status_LS', '0000')
    can.send_message('ACC_Drv_Seat_Vib_Req_IO_LS', '00')
    can.send_message('CSV_FSRACC_Indications_LS', '00')
    can.send_message('Climate_Control_General_Status', '000000000000')
    can.send_message('Climate_Control_Basic_Status_LS', '00000000')
    can.send_message('Airbag_Status', '000000000000')
    can.send_message('Audio_Master_Arbitration_Command', '0000')
    can.send_message('Telematics_Indication_Request_LS', '00000000')
    can.send_message('Diesel_Information_LS', '0000000000000000')
    can.send_message('PTO_Status_LS', '0000080000')
    can.send_message('Diesel_Information_2_LS', '00000000000000')
    can.send_message('Climate_Control_Basic_Status_LS', '00000000')
    can.send_message('Audio_Source_Status_LS', '0000')
    can.send_message('ACC_Drv_Seat_Vib_Req_IO_LS', '00')
    can.send_message('CSV_FSRACC_Indications_LS', '00')
    can.send_message('Hybrid_Information_LS', '0000000000')
    can.send_message('Hybrid_Information_SuperSlow_LS', '0000010000')
    can.send_message('Hybrid_Information_SuperSlow_LS', '0000010000')
    can.send_message('Hyb_Redundant_Batt_Data2_LS', '00000000')
    can.send_message('Chassis_Information_2_LS', '000000000000')
    can.send_message('Chassis_Information_LS', '00F0000000000000')
    can.send_message('Vehicle_Speed_Information', '0000000000000000')
    can.send_message('Battery_Voltage', '00006400000000')
    can.send_message('System_Power_Mode_LS', '02')
    can.send_message('HSGMLAN_Customization_Setings_LS', '0000000000')
    can.send_message('ACC_YawRate_Information_LS', '1000000000000000')
    can.send_message('Brake_Pedal_Status_LS', '0000')
    can.send_message('Driven_Whl_Rotational_Stat_LS', '0000000000000000')
    can.send_message('Analog_Values_Slow_LS', '00003cf0a78c30be')
    can.send_message('Engine_Information_2_LS', '0001Cf00000006A0')
    can.send_message('Non_Drvn_Whl_Rot_Status_LS', '0000000000000000')
    can.send_message('Telematics_Indication_Control_LS', '00000000')
    can.send_message('Telematics_Indication_Control_LS', '00000000')
    can.send_message('Engine_Information_4_LS', '010001A059000000')
    can.send_message('Engine_Information_3_LS', '00000000000006A0')
    can.send_message('Vehicle_Stability_LS', '8800080100000000')
    can.send_message('Wheel_Pulses_LS', '00000000')
    can.send_message('Wheel_Grnd_Velocity_LS', '0000000000000000')
    can.send_message('Immobilizer_Identifier_LS', '04D2162E03')
    can.send_message('Alternative_Fuel_Information_LS', '0000000000')
    can.send_message('Vehicle_Odo_LS', '0000089B00')
    can.send_message('Engine_Information_1_LS', '0040177000001102')
    can.send_message('HS_Indications_Slow_LS', '0000000008000000')
    can.send_message('HS_Indications_SuperSlow_LS', '080000000000')
    can.send_message('Fuel_Information', '00CC00000000')
    can.send_message('VIN_Digits_2_to_9', '6573746275737369')
    can.send_message('HS_Indications_Fast_LS', '040E000000000000')
    can.send_message('VIN_Digits_10_to_17', '6D756C6174696F6E')
    can.send_message('Environment_Id_Resp_2_LS', '162E01')
    can.send_message('Environment_Id_Resp_1_LS', '162E01')
    can.send_message('Park_Assistant_General_Status', '00')
    can.send_message('Side_Blind_Zone_Alert_Status', '00')
    can.send_signal('Interior Dimming Display Level', '100.000035')
    can.send_signal('parking assistance failed', 'false')
    can.send_signal('washer fluid low', 'false')
